#ifndef DIALOG_H
#define DIALOG_H

#include <QDialog>
#include <QListWidget>
#include <QHBoxLayout>
#include <QLineEdit>
#include <QPushButton>
#include <QUdpSocket>

class Dialog : public QDialog
{
    Q_OBJECT

    QListWidget *lwid;
    QUdpSocket *socket;
    QPushButton *button;
    QLineEdit *ipLine;
    QLineEdit *portLine;
    QLineEdit *greetingLine;

public:
    explicit Dialog(QString port, QWidget *parent = 0);

signals:

public slots:
    void sendMessage();
    void readMessage();
};

#endif // DIALOG_H
